<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数-对象-结构化</title>
</head>
<body>

</body>
<script>

    /**
     * 具体--->抽象 --->巨像
     * */

    /**
     * 模板
     * */
    function Employee(name,age){
        this.name = name;
        this.age = age;

        this.sayHello=function () {
            alert("hello,I'm " + this.name);
        }
    }


    var emp1 = new Employee('Mat',34);
   // alert(emp1.age);
    emp1.sayHello();

</script>

</html>